import Vue from 'vue'
import VueRouter from 'vue-router'
import Index from '../components/Index.vue'
import Info from '../components/info/Info.vue'
import Mgr from '../components/mgr/Mgr.vue'
import Role from '../components/role/Role.vue'
import Dept from '../components/dept/Dept.vue'
import Menu from '../components/menu/Menu.vue'
import Dict from '../components/dict/Dict.vue'
import Channel from '../components/channel/Channel.vue'
import ArticleEdit from '../components/articleEdit/ArticleEdit.vue'
import Article from '../components/article/Article.vue'
import Filemgr from '../components/filemgr/Filemgr.vue'
Vue.use(VueRouter)

const routes = [
  {
    path:'/',
    name:'Index',
    component: Index
  },
  {
    path:'/info',
    name:'Info',
    component: Info
  },
  {
    path: '/mgr',
    name: 'Mgr',
    component: Mgr
  },
  {
    path: '/role',
    name: 'Role',
    component: Role
  },
  {
    path: '/dept',
    name: 'Dept',
    component: Dept
  },
  {
    path: '/menu',
    name: 'Menu',
    component: Menu
  },
  {
    path: '/dict',
    name: 'Dict',
    component: Dict
  },
  {
    path: '/channel',
    name: 'Channel',
    component: Channel
  },
  {
    path: '/cms/articleEdit',
    name:"ArticleEdit",
    component: ArticleEdit
  },
  {
    path: '/article',
    name: 'Article',
    component: Article
  },
  { 
    path: '/filemgr',
    name: 'Filemgr',
    component: Filemgr
     
  }
]

const router = new VueRouter({
     routes,
     mode:"hash"
});

export default router;